package com.keepsport.keepsportapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 *      ┌─┐       ┌─┐ + +
 *   ┌──┘ ┴───────┘ ┴──┐++
 *   │                 │
 *   │       ───       │++ + + +
 *   ███████───███████ │+
 *   │                 │+  
 *   │       ─┴─       │
 *   │                 │
 *   └───┐         ┌───┘
 *       │         │ 
 *       │         │   + +神兽保佑
 *       │         │      代码无BUG!
 *       │         └──────────────┐
 *       │                        │
 *       │                        ├─┐
 *       │                        ┌─┘
 *       │                        │
 *       └─┐  ┐  ┌───────┬──┐  ┌──┘  + + + +
 *         │ ─┤ ─┤       │ ─┤ ─┤
 *         └──┴──┘       └──┴──┘  + + + +
 *          Data:2022/7/1
 *          @author wyb
 *          Description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_community_log")
public class CommunityLog {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 消息id
     */
    private Integer cid;
    /**
     * 点赞人的id
     */
    private Integer uid;
    /**
     * 状态
     * 1,点赞
     * 0,没有点赞
     */
    private Integer flag;
    public CommunityLog(Integer cid, Integer uid ) {
        this.cid = cid;
        this.uid = uid;
    }
}
